// electron.vite.config.ts
import { resolve } from "path";
import { defineConfig, externalizeDepsPlugin } from "electron-vite";
import react from "@vitejs/plugin-react";
import cesium from "vite-plugin-cesium";
var __electron_vite_injected_dirname = "D:\\SPACE\\robot-navigation-system";
var electron_vite_config_default = defineConfig({
  main: {
    plugins: [externalizeDepsPlugin()]
  },
  preload: {
    plugins: [externalizeDepsPlugin()]
  },
  renderer: {
    resolve: {
      alias: {
        "@renderer": resolve(__electron_vite_injected_dirname, "src/renderer")
      }
    },
    plugins: [
      react(),
      cesium({
        cesiumBuildPath: resolve(__electron_vite_injected_dirname, "out/renderer/cesium"),
        // 关键：确保这里是相对路径
        cesiumBaseUrl: "./cesium/"
        // Electron 访问本地资源时需要相对路径
      })
    ]
  }
});
export {
  electron_vite_config_default as default
};
